package com.atguigu.spzx.mapper;


import com.atguigu.spzx.model.dto.system.SysUserDto;
import com.atguigu.spzx.model.entity.system.SysUser;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SysUserMapper {
    SysUser getSysUserByUsername(String userName) ;

    Page<SysUser> findByPage(@Param("dto") SysUserDto sysUserDto);

    void removeById(Long id);

    void updateUser(SysUser sysUser);

    void saveUser(SysUser sysUser);

    SysUser findByUsername(SysUser sysUser);

}
